Ext.define('TS.model.rp.ArpBillModel',{
	extend: 'Ext.data.Model',	
	fields: [
	  {name: 'arpBillId',type:'int'},
	  {name: 'arpBillCode',type:'string'},
	  {name: 'arpBillType',type:'int'},
	  {name: 'arpBillName',type:'string'},
	  {name: 'billDate',type:'date'},
	  {name: 'funcDate',type:'date'},
	  {name: 'arpDate',type:'date'},
	  {name: 'direct',type:'int'},
	  {name: 'custSuppId',type:'int'},
	  {name: 'deptId',type:'int'},
	  {name: 'empId',type:'int'},
	  {name: 'makerId',type:'int'},
	  {name: 'amount',type:'float'},
	  {name: 'jxcBillId',type:'int'},
	  {name: 'fyear',type:'int'},
	  {name: 'period',type:'int'},
	  {name: 'archived',type:'boolean'},
	  {name: 'remark',type:'string'},
	  {name: 'checkAmount',type:'float'},
	  {name: 'checkStatus',type:'int'},
	  {name: 'currentCheckAmount',type:'float'},
	  {name: 'unCheckAmount',type:'float'}
	],
	associations:[
	  {type: 'hasOne',model: 'TS.model.base.CustomerModel',associatedName:'customer',associationKey:'customer'},
	  {type: 'hasOne',model: 'TS.model.base.DeptModel',associatedName: 'dept',associationKey:'dept'},
	  {type: 'hasOne',model: 'TS.model.base.EmpModel',associatedName: 'emp',associationKey:'emp'},
	  {type: 'hasOne',model: 'TS.model.base.EmpModel',associatedName: 'maker',associationKey:'maker'}
	]
});